package qc;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Vector;

import org.quickconnect.ControlObject;

import controller.ServerConnectionHandler;

import ui.MainFrame;

import beans.CommunicationBean;

public class SendRemoveUserBCO implements ControlObject{

	@Override
	public Object handleIt(ArrayList<Object> arg0) {
		HashMap params = (HashMap) arg0.get(arg0.size()-1);
		CommunicationBean bean = new CommunicationBean();
		bean.setCommand("removeUserFromList");
		HashMap parameters = new HashMap();
		String[] user = {(String)params.get("userToBan"), ""};
		
		parameters.put("user", user);
		parameters.put("sessionId", (String) params.get("sessionId"));
		bean.setParameters(parameters);
		params.put("commBean", bean);
		return params;
	}

}
